<extend name="./Common/View/Public/form.html" />
<block name="page_title">编辑班级</block>
<block name="main">
    <form class="layui-form" method="post" action="base/class/update" lay-filter="pageForm">
        <input type="hidden" value="{$data.id}" name="id" />
        <div class="layui-form-item">
            <label class="layui-form-label">专业</label>
            <div class="layui-input-block">
                <select name="depart_id" id="depart_id" lay-filter="depart_id" value="{$data.depart_id}" api="base/Department/slist/type/3" empty="所属专业">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">班级名称</label>
            <div class="layui-input-inline">
                <input type="text" name="title" value="{$data.title}" maxlength="50" minlength="1" required lay-verify="required|length" placeholder="请输入班级名称" autocomplete="off" class="layui-input" />
            </div>
            <div class="layui-form-mid layui-word-aux">1-15个英文或汉字</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">年级</label>
            <div class="layui-input-inline">
                <select name="grade" id="grade" lay-filter="grade" required lay-verify="required" value="{$data.grade}" api="sys/Config/grade" empty="年级"></select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">学制</label>
            <div class="layui-input-inline">
                <select name="system" id="system" lay-filter="system" required lay-verify="required" value="{$data.system}" api="sys/Config/xz" empty="学制"></select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">班级状态</label>
            <div class="layui-input-block">
                {:W('Todo/Dict/radio',array('STATUS','status',$data['status']))}
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">班主任工号</label>
            <div class="layui-input-block">
                <input type="text" name="master" value="{$data['number']}" maxlength="20" lay-verify="length" placeholder="请输入班主任工号" autocomplete="off" class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="pageForm">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</block>